<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>
<tiles:importAttribute/>

<div class="entry">
    <div class="entry-left">
        <img src="/static-images/pic-admin.gif">
    </div>
    <div class="entry-right">
        <div class="entry-header">
            <a href="<c:url value="/viewnews.form/${entry.id}"/>">
                <c:out value="${entry.header}"/>
            </a>
        </div>
        <div class="entry-data">
            <fmt:formatDate value="${entry.date}"/>
            <a href="<c:url value="/viewprofile.form/${entry.author.username}"/>">
                <c:out value="${entry.author.fullname}"/>
            </a>
        </div>
        <div class="entry-text">
            <c:out value="${entry:preview(entry.text)}" escapeXml="false"/>
            <c:if test="${entry:isShortened(entry.text)}">
                <a href="<c:url value="/viewnews.form/${entry.id}"/>"><fmt:message key="app.entry.readEntire"/></a>
            </c:if>
        </div>
    </div>
</div>
